package com.lxg.gitflow.controller;

import com.lxg.gitflow.domain.User;
import com.lxg.gitflow.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
public class UserController {

	@Autowired
	private IUserService userService;

	@RequestMapping("/save")
	public Object get(@PathVariable User user){
		System.out.println("修复bug");
		userService.save(user);
		return null;
	}

}
